import React from 'react';
import { Result, Button} from 'antd';
import {useHistory} from 'react-router-dom';

export default function Error404(){

  const history = useHistory();
  return (
    <Result
      status="404"
      title="404"
      subTitle="抱歉，没有找到内容"
      extra={<Button type="primary" onClick={()=>{history.push('/')}}>返回首页</Button>}
    />
  )
}